package com.moyu.shopapp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.moyu.shopapp.entity.Cart;
import com.moyu.shopapp.entity.Goods;
import com.moyu.shopapp.entity.vo.CartGoodsVO;

import java.util.List;

/**
 * @author ZJF
 * @description 针对表【cart】的数据库操作Service
 * @createDate 2023-12-01 16:32:18
 */
public interface CartService extends IService<Cart>{
    Cart findCartByUserIdAndGoodsId(int userId,int goodsId);
    List<CartGoodsVO> listByUserId(int userId);
    String updateQuantity(Cart cart);

}
